package com.rfid.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rfid.common.annotation.Excel;
import com.rfid.common.core.domain.BaseEntity;

/**
 * 单据明细对象 t_order_product_detail
 *
 * @author fangchen
 * @date 2020-12-24
 */
public class TOrderProductDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 单据明细id
     */
    private Long id;

    /**
     * 单据总表id
     */
    @Excel(name = "单据总表id")
    private Long orderTotalId;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private String productId;

    /**
     * 产品数量
     */
    @Excel(name = "产品数量")
    private Long productNum;

    /**
     * 预留字段,保存格式为json字段
     */
    @Excel(name = "预留字段,保存格式为json字段")
    private String field;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderTotalId(Long orderTotalId) {
        this.orderTotalId = orderTotalId;
    }

    public Long getOrderTotalId() {
        return orderTotalId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductNum(Long productNum) {
        this.productNum = productNum;
    }

    public Long getProductNum() {
        return productNum;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getField() {
        return field;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderTotalId", getOrderTotalId())
                .append("productId", getProductId())
                .append("productNum", getProductNum())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("field", getField())
                .toString();
    }
}
